package com.itbbj.principle.d2_LSP.demo2;

import com.itbbj.principle.d2_LSP.demo1.Brid;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: jack_yang
 * @Date: 2024/5/6
 * @Description: addition and subtraction
 */
public class Test {
    public static void main(String[] args) {
        Animal ostrich = new Ostrich();
        ostrich.setRunSpeed(60.0);
        System.out.println("距离为300公里");
        System.out.println("OSTRICH run time:"+ostrich.calcuRunTime(300));
    }

}
